<@page.html title="私教上课预约">
<script type="text/javascript" src="${_appPath!}/js/cal.js"></script>
<script type="text/javascript">
  function addpb(dt, c, h) {
    openWin("add?date="+dt+"&cardCode="+c+"&hour="+h, 600, 410);
  }
  function add() {
    var fm = getEl("fm_query");
    openWin("add?date="+fm.date.value+"&cardCode="+fm.cardCode.value, 600, 410);
  }
  function view(id) {
    openWin("view?id="+id, 500, 350);
  }
  function addOk() {
    query();
  }
  function goday(dt) {
    getEl("fm_query").date.value = dt;
    query();
  }
</script>
  <div class="search">
    <form id="fm_query" action="_list">
      <dl>
        <dt>日期</dt>
        <dd><input type="text" class="date" name="date" value="" onfocus="cal(this);" /></dd>
        <dt>会员卡号</dt>
        <dd><input type="text" name="cardCode" value="" size="16" /></dd>
        <dd class="button"><input type="button" value="查询" onclick="query();"></dd>
        <dd class="button"><#if canAdd??><input type="button" value="预约" onclick="add();"></#if></dd>
      </dl>
    </form>
  </div>
  <div id="div_list"></div>
<script type="text/javascript">query();</script>
</@page.html>